#ifndef _USER_SNTP_H
#define _USER_SNTP_H

#define CONFIG_SNTP_TIME_SERVER "pool.ntp.org"
#define CONFIG_SNTP_TIME_SYNC_METHOD_SMOOTH 1
#ifndef INET6_ADDRSTRLEN
#define INET6_ADDRSTRLEN 48
#endif

typedef struct{
    uint8_t valid;
    uint32_t year;
    uint8_t mon;
    uint8_t day;
    uint8_t hour;
    uint8_t min;
    uint8_t sec;
}time_flag_t;

extern time_flag_t time_flag;


void user_sntp_task(void *param);

#endif